#include "stack.h"
#include "queue.h"
#include <iostream>
#include<vector>
#include <list>
using namespace std;
void TestStack()
{
	mjw::stack<int, vector<int>> st;
	st.push(1);
	st.push(2);
	st.push(3);
	st.push(4);
	while (!st.empty())
	{
		int top = st.top();
		cout << top << " ";
		st.pop();
	}
	cout << endl;
	cout << st.size() << endl;
	cout << endl;
}
void Testqueue()
{
	mjw::queue<int, list<int>> q;
	q.push(1);
	q.push(2);
	q.push(3);
	q.push(4);

	while (!q.empty())
	{
		int front = q.front();
		cout << front << " ";
		q.pop();
	}
	cout << endl;
	cout << q.size() << endl;
}
int main()
{
	//TestStack();
	Testqueue();
	return 0;
}